package com.trkj.zzplus.ui.myresidemenuitem;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;

import com.special.ResideMenu.ResideMenuItem;
import com.trkj.zzplus.R;

/**
 * Created by Administrator on 2016/6/7.
 */
public class MyResideMenuItem extends ResideMenuItem {

    private RecyclerView mRecyclerView;

    public MyResideMenuItem(Context context) {
        super(context);
        initViews(context);
    }

    public MyResideMenuItem(Context context, int icon, int title) {
        super(context, icon, title);
    }

    public MyResideMenuItem(Context context, int icon, String title) {
        super(context, icon, title);
    }

    private void initViews(Context context) {
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        inflater.inflate(R.layout.my_reside_menu_item, this);
        mRecyclerView = (RecyclerView) findViewById(R.id.reside_menu_recycler_view);
    }
}
